import { post, get, put, DELETE } from '../utils/request'

export function order(params) {
    return get('/api/v1/admin/orders', { params })
}

export function orderPut(id, params) {
    return put('/api/v1/admin/orders/' + id, params)
}

export function orderEdit(id) {
    return get('/api/v1/admin/orders/' + id)
}

export function orderDelete(id) {
    return DELETE("/api/v1/admin/orders/" + id)
}